const router = require('koa-router')()
const fileController = require('../controller/fileApiController')
const tokenCheck = require('../middlewares/auth')


router.prefix('/apis/files')

router.all('*',tokenCheck.tokenCheck)

router.post('/uploadUserPic',fileController.uploadUserPic)

router.post('/downloadUserPic',fileController.downloadUserPic)



module.exports = router